package com.kuaimacode.kframework.mybatis.models.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 分站特殊天气
 * </p>
 *
 * @author Bean
 * @since 2019-03-12
 */
@TableName("sys_agent_weather")
@Data
public class SysAgentWeather implements Serializable {
	@TableField(exist = false)
    private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
    /**
     * 天气id
     */
	@TableField("weather_id")
	private Integer weatherId;

	/**
	 * 天气id
	 */
	@TableField("weather_desc")
	private String weatherDesc;
    /**
     * 开始时间
     */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("start_time")
	private Date startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("end_time")
	private Date endTime;
    /**
     * 分站id
     */

	@TableField("agent_id")
	private String agentId;
	/**
	* 奖励金额
	 */
	@TableField("reward")
	private BigDecimal reward;

	//是否正在进行 0 已过期  1 正在进行  2 未生效
	@TableField(exist = false)
	private String status;

	@TableField("create_at")
	private Date createAt;

	@TableField("create_by")
	private Long createBy;

	@TableField("update_at")
	private Date updateAt;

	@TableField("update_by")
	private Long updateBy;


}
